package com.itheima.semaphore.demo;

public class Demo {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();

        for (int i = 0; i < 100; i++) {
            Thread t = new Thread(mr);
            t.setName(i+"");
            t.start();
        }
    }
}
